<template>
    <h1>理财项目列表</h1>

    <FinanAll v-slot="info">
        <a href="#" @click="jump(info.id)" >购买</a>
    </FinanAll>

</template>

<script setup lang="ts">

import FinanAll from './FinanAll.vue'
import { useRouter } from 'vue-router';

const router = useRouter()

const jump = (Id:string)=>{
    router.push({
        name:'UserFinanAdd',
        params:{
            Id:Id
        }
    })
}


</script>